﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Methods.ascx.cs" Inherits="WebService_Components_Methods" %>
<div class="box-option">
    Method(s)</div>
<div class="box">
    <%if (string.IsNullOrEmpty(Error))
      { %>

<%--    <div id="dv-web-method-list" style="padding: 0px; text-align: left; overflow-x: scroll;
        margin: 1px;">--%>
        <div style="padding: 0px; text-align: left; overflow-x: scroll;
        margin: 1px;">
        <table width="100%" cellspacing="0" cellpadding="0" border="0" style="line-height: 1.5em;">
            <asp:Repeater ID="rptResult" runat="server">
                <ItemTemplate>
                     <%if(IsProxy){ %>
                    <tr valign="top">
                        <td style="width:5px;"><span class="comment">»</span></td>
                        <td>
                           
                            <a href="javascript:;;" onclick="GetWebProxy('<%#((System.Reflection.MethodInfo)Container.DataItem).Name %>');">
                            <%#((System.Reflection.MethodInfo)Container.DataItem).Name %>
                            </a>
                            </td><td style="text-align:right;">
                                 <%#GetProxyCaseInfo(((System.Reflection.MethodInfo)Container.DataItem).Name) %>
                            <%#GetCacheInfo(((System.Reflection.MethodInfo)Container.DataItem).Name) %>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div class="line-sub">
                            </div>
                        </td>
                    </tr>
                            <%}else{ %>
                    <tr valign="top">
                        <td style="width:5px;"><span class="comment">»</span></td>
                        <td>
                            <a href="javascript:;;" onclick="GetWebMethodInfo('<%#((System.Reflection.MethodInfo)Container.DataItem).Name %>');">
                                <%#((System.Reflection.MethodInfo)Container.DataItem).Name %>
                            </a>
                            </td><td style="text-align:right;">
                                                <%if(Parameter.Address.ToLower().EndsWith(".asmx")){ %>
                            <a target="_blank" href="<%=Parameter.Address %>?op=<%#((System.Reflection.MethodInfo)Container.DataItem).Name %>">
                                Intro</a><%} %>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="3">
                            <div class="line-sub">
                            </div>
                        </td>
                    </tr><%} %>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <%}
      else
      { %>
    <%=Error %>
    <%} %>
</div>

<%if(Parameter.Proxy!=null && Parameter.Proxy.EnableCache){ %>

<%} %>